/*
 * Created on 12/Abr/2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package org.cyborgas.xmltool.actions;

import org.cyborgas.xmltool.MainWindow;
import org.cyborgas.xmltool.Util;
import org.cyborgas.xmltool.tabsheets.XslTransformTab;
import org.eclipse.jface.action.Action;
import org.eclipse.swt.SWT;


/**
 * @author rino
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class XslTransformAction extends Action {
	private MainWindow window;
	private XslTransformTab tab;

	public XslTransformAction(MainWindow window, XslTransformTab tab) {
		this.window = window;
		this.tab = tab;
		setText("Apply &Tranform");
		setAccelerator(SWT.MOD1 | 'X');
		setToolTipText("Apply XSL Tranformation to document");
		setImageDescriptor(Util.getImageDescriptor("run"));
	}

	public void run() {
		tab.transform();
	}	

}
